package com.istock.state.mock.model;

import java.io.Serializable;
import java.util.Date;

public class ApplyInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * BIGINT(20) 必填<br>
     * 
     */
    private Long id;

    /**
     * BIGINT(19)<br>
     * 
     */
    private Long requestId;

    /**
     * INTEGER(10)<br>
     * 
     */
    private Integer type;

    /**
     * VARCHAR(200)<br>
     * 
     */
    private String content;

    /**
     * INTEGER(10)<br>
     * 
     */
    private Integer status;

    /**
     * TIMESTAMP(19)<br>
     * 
     */
    private Date updateTime;

    /**
     * BIGINT(20) 必填<br>
     * 获得 
     */
    public Long getId() {
        return id;
    }

    /**
     * BIGINT(20) 必填<br>
     * 设置 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * BIGINT(19)<br>
     * 获得 
     */
    public Long getRequestId() {
        return requestId;
    }

    /**
     * BIGINT(19)<br>
     * 设置 
     */
    public void setRequestId(Long requestId) {
        this.requestId = requestId;
    }

    /**
     * INTEGER(10)<br>
     * 获得 
     */
    public Integer getType() {
        return type;
    }

    /**
     * INTEGER(10)<br>
     * 设置 
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * VARCHAR(200)<br>
     * 获得 
     */
    public String getContent() {
        return content;
    }

    /**
     * VARCHAR(200)<br>
     * 设置 
     */
    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    /**
     * INTEGER(10)<br>
     * 获得 
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * INTEGER(10)<br>
     * 设置 
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * TIMESTAMP(19)<br>
     * 获得 
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * TIMESTAMP(19)<br>
     * 设置 
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", requestId=").append(requestId);
        sb.append(", type=").append(type);
        sb.append(", content=").append(content);
        sb.append(", status=").append(status);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ApplyInfo other = (ApplyInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getRequestId() == null ? other.getRequestId() == null : this.getRequestId().equals(other.getRequestId()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getRequestId() == null) ? 0 : getRequestId().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }
}